{% extends "zerver/portico.html" %}
{% set entrypoint = "landing-page" %}

{% block customhead %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% endblock %}

{% block portico_content %}

{% include 'zerver/gradients.html' %}
{% include 'zerver/landing_nav.html' %}

<div class="portico-landing plans">
    <div class="main">
        <div class="pricing-model">
            <div class="padded-content">
                <h1>Get started today.</h1>

                <div class="pricing-container">
                    <div class="block">
                        <div class="plan-title responsive-title">
                            Zulip Cloud
                        </div>

                        <div class="price-box" tabindex="-1">
                            <div class="text-content">
                                <h2>Free</h2>
                                <div class="description">
                                    Try Zulip for an unlimited period of time.
                                </div>
                                <hr>
                                <ul class="feature-list">
                                    <li>10,000 messages of search history</li>
                                    <li>File storage up to 5 GB total</li>
                                    <li>Convenient web service</li>
                                    <li>No sysadmin work required</li>
                                </ul>
                            </div>
                            <div class="bottom">
                                <div class="text-content">
                                    {% if realm_plan_type <= 1 %}
                                    <div class="pricing-details">
                                        Free
                                    </div>
                                    <a href="/new/" class="button green">
                                        Sign up now
                                    </a>
                                    {% elif realm_plan_type == 2 or sponsorship_pending %}
                                    <div class="pricing-details"></div>
                                    <a href='/upgrade' class="button black-current-value" type="button">
                                        Current plan
                                    </a>
                                    {% endif %}
                                </div>
                            </div>
                        </div>

                        <div class="price-box" tabindex="-1">
                            <div class="text-content">
                                <h2>Standard</h2>
                                <div class="description">
                                    Make Zulip your home.
                                </div>
                                <hr>
                                <ul class="feature-list">
                                    <li>Full search history</li>
                                    <li>File storage up to 10 GB per user</li>
                                    <li>Full access to enterprise features
                                    like guest users and user groups</li>
                                    <li>Priority commercial support</li>
                                    <li>Funds the Zulip open source project</li>
                                </ul>
                            </div>
                            <div class="bottom">
                                <div class="text-content">
                                    <div class="standard-price-box">
                                        <div class="price">6<span class="price-cents">.67</span></div>
                                        <div class="details">
                                            per user per month
                                            <br>
                                            $8/month billed monthly
                                        </div>
                                    </div>
                                    {% if realm_plan_type in [3, 4] %}
                                    <a href='/upgrade' class="button black-current-value" type="button">
                                        Current plan
                                    </a>
                                    {% elif realm_plan_type == 0 %}
                                    <a href="/new" class="button green">
                                        {% if free_trial_days %}
                                        Start {{ free_trial_days }} day free trial
                                        {% else %}
                                        Buy Standard
                                        {% endif %}
                                    </a>
                                    {% elif sponsorship_pending %}
                                    <a href="/billing" class="button black-current-value" type="button">
                                        Sponsorship pending
                                    </a>
                                    {% else %}
                                    <a href="/upgrade" class="button green">
                                        {% if free_trial_days %}
                                        Start {{ free_trial_days }} day free trial
                                        {% else %}
                                        Buy Standard
                                        {% endif %}
                                    </a>
                                    {% endif %}
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="block">
                        <div class="plan-title responsive-title">
                            Zulip On-Premise
                        </div>

                        <div class="price-box" tabindex="-1">
                            <div class="text-content">
                                <h2>Community support</h2>
                                <div class="description">
                                    Install your own Zulip server.
                                </div>
                                <hr>
                                <ul class="feature-list">
                                    <li>Easy self-service installation</li>
                                    <li>Free and open source forever under Apache 2.0 license</li>
                                    <li>LDAP/Active directory integration</li>
                                    <li>All Standard/Enterprise features included</li>
                                </ul>
                            </div>
                            <div class="bottom">
                                <div class="text-content">
                                    <div class="pricing-details">
                                        Free and open source forever
                                    </div>
                                    <a href="https://zulip.readthedocs.io/en/stable/production/install.html" class="button green">
                                        Install a Zulip server
                                    </a>
                                </div>
                            </div>
                        </div>

                        <div class="price-box" tabindex="-1">
                            <div class="text-content">
                                <h2>Enterprise</h2>
                                <div class="description">
                                    For mission-critical installations.
                                </div>
                                <hr>
                                <ul class="feature-list">
                                    <li>Easy self-service installation</li>
                                    <li>Support response SLAs</li>
                                    <li>High availability assistance</li>
                                    <li>Input into the Zulip roadmap</li>
                                    <li>Funds the Zulip open source project</li>
                                </ul>
                            </div>
                            <div class="bottom">
                                <div class="text-content">
                                    <div class="pricing-details">
                                        Pricing varies with support required
                                    </div>
                                    <a href="mailto:sales@zulip.com" target="_blank" rel="noopener noreferrer" class="no-action button green">
                                        Contact sales
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {% include "zerver/faq.html" %}
    {% include "zerver/compare.html" %}
</div>
{% endblock %}
